<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"></c:set>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>55社区</title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="icon" type="image/png" href="/theme/default/images/favicon.png">
    <jsp:include page="common.jsp"></jsp:include>
</head>
<body>
<header data-am-widget="header" class="am-header am-header-default sq-head ">
    <div class="am-header-left am-header-nav">
        <a href="javascript:history.back()" class="">
            <i class="am-icon-chevron-left"></i>
        </a>
    </div>
    <h1 class="am-header-title">
        <a href="" class="">新闻详情</a>
    </h1>
</header>
<div style="height: 49px;"></div>
<div class="news">
    <h3>${news.news_title}</h3>
    <p>来源：ADMIN &nbsp;&nbsp;日期：${news.news_time}   &nbsp;&nbsp; 浏览次数：${news.news_nums}</p>
</div>
<div class="news-con">

    <img src="${ctx}/static/${news.news_img}" />
    ${news.news_content}
</div>
<script>
    $(function () {
        setTimeout(function () {
            var id = '${news.news_id}';
            var mydata = {"news_id": id}
            $.post("${ctx}/news/list_nums.do", mydata, function (data) {
                if (data=='success'){
                    console.info("增加成功")
                }
            }, "text")
        }, "3000");
    })

</script>
</body>
</html>
